package ${package.Service};

import ${package.Entity}.${entity};
import com.alibaba.fastjson.JSONObject;

 /**
 * All rights Reserved, Designed By 哈尔滨工业大学软件工程股份有限公司
 * 
 * @Title: ${table.comment!} Service层接口
 * @Package 
 * @Description: 
 * @author: ${author}
 * @date: ${date}
 */
public interface ${table.serviceName} {


    /**
     * 查询单条数据
     * @param ${entity?uncap_first}
     * @return
     */
    JSONObject findOne(${entity} ${entity?uncap_first});


    /**
     * 查询列表数据
     * @param ${entity?uncap_first}
     * @return
     */
    JSONObject findList(${entity} ${entity?uncap_first});


    /**
     * 查询分页列表数据
     * @param ${entity?uncap_first}
     * @param page
     * @param pageSize
     * @return
     */
    JSONObject findPageList(${entity} ${entity?uncap_first}, long page, long pageSize);


    /**
     * 新增
     * @param ${entity?uncap_first}
     * @return
     */
    JSONObject add(${entity} ${entity?uncap_first});


    /**
     * 修改
     * @param ${entity?uncap_first}
     * @return
     */
    JSONObject update(${entity} ${entity?uncap_first});


    /**
     * 删除
     * @param ${entity?uncap_first}
     * @return
     */
    JSONObject delete(${entity} ${entity?uncap_first});


}

